package wsepForum.common.elements;

import org.compass.annotations.*;

/**
 * 
 * @author Ofir Tam & Ori Ossmy
 *
 */
public class MessageHeader extends AForumElement {

	
	/*****************************
	 * MEMBERS                   *
	 *****************************/
	/**
	 * 
	 */
	protected String authorUserName;
	
	/*****************************
	 * CONSTRUCTOR               *
	 *****************************/
	protected MessageHeader() {
		
	}
	
	/**
	 * 
	 * @param headLine
	 * @param parentID
	 */
	public MessageHeader(String headLine, int parentID) {
		super(headLine, parentID);
	}
	
	/*****************************
	 * METHODS                   *
	 *****************************/
	/**
	 * 
	 */
	@SearchableProperty(name = "author")
	public String getUserName() {
		return this.authorUserName;
	}
	
	
	/**
	 * 
	 */
	public void setUserName(String userName) {
		this.authorUserName = userName;
	}
	
	
	/**
	 *
	 */
	public ForumElementType elementIdetitity(){
		return ForumElementType.MESSAGE;
	}
}
